package com.xinyue.game.server.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

@Data
@Configuration
@ConfigurationProperties(prefix = "xinyue.gameserver.config")
public class GameServerConfig {

    /**
     * 游戏异步任务执行的线程数
     */
    private int gameAsyncTaskThreadCount = Runtime.getRuntime().availableProcessors() * 2;
    /**
     * 当前服务的topic名称,用于接收网关消息
     */
    private String serviceTopicName = "service001";


}
